package com.sian.security.web.model;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;



public class Authority extends Role implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 5276763509933720944L;
	private Long organizationId;
	private List<Permission> permissions;

	public Long getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(Long organizationId) {
		this.organizationId = organizationId;
	}
	
	@XmlElement(name = "permission", required = true)
	@XmlElementWrapper(name = "permissions")
	public List<Permission> getPermissions() {
		return permissions;
	}

	public void setPermissions(List<Permission> permissions) {
		this.permissions = permissions;
	}
}
